const express=require("express")
const router=express.Router();
const pool=require("../pool");
//功能九：添加购物车
router.get("/",(req,res)=>{
  var sql=`SELECT id,title,adress FROM yhc_4s`;
  pool.query(sql,(err,result)=>{
    if(err) throw err;
    res.send({code:1,data:result});
  })
})
module.exports=router;